package com.jxm.jdk8features;

/**
 * @Description:
 * @Author: JXM
 * @Date: 2023-12-25 21:55
 */
public class Car {
    private String name;
    private double price;

    public Car(){}
    public Car(String name,double price){
        this.name = name;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Car{" +
                "name='" + name + '\'' +
                ", price=" + price +
                '}';
    }
}
